In general, we can use the TRUNCATE or DELETE statement to DELETE records in the table. The TRUNCATE statement is usually more efficient, but you need to pay attention to it. TRUNCATE is a DDL statement, which means that Oracle will automatically
A, DELETE statement
(1) Conditional deletion
Syntax format: delete [from] table_name [where condition];
For example: Delete data from the users Table of UserID ' 001 ': Delete from users where userid= ' 001 ';
(2) Unconditionally delete the
Explain the differences between DELETE, TRUNCATE, and DROP in Oracle. oracletruncatePrefaceIn the past, when I was working on a project, I seldom paid attention to the details in the knowledge point. Today, I have the opportunity to differentiate
You need to understand the Delete statement of MySQL. MySQL provides the delete and truncate statements to delete data.Definition of the delete statement:Most of the children who often deal with databases use delete statements to delete data. Now
YSQL provides the delete and truncate statements to delete data. Delete statement Definition: delete statements are usually used by children who often deal with databases to delete data. Now let's take a look at the definition of the delete
The difference between truncate and delete and the basic concept of DDL,DML,DCL,TCL
Understand DDL,DML,DCL,TCL Basic Concepts First
For SQL languages, there are two components:
DML (Data Manipulation language): They are select, UPDATE,
YSQL provides the delete and truncate statements to delete data.
Definition of the delete statement:
Most of the children who often deal with databases use delete statements to delete data. Now let's take a look at the definition of the delete
Notes on truncate table
--- The following is a summary of the quotations of itpub's predecessors.
After truncate table, oracle recycles the index of the table and its table to the initial size, that is, the size of the initial allocated
Comparison between truncate and delete operations
Operation
Rollback
High waterline
Space
Efficiency
Truncate
No
Decrease
Reclaim
Fast
Delete
Yes
Unchanged
Do not recycle
Slow
Explain the differences between DELETE, TRUNCATE, and DROP in OraclePrefaceIn the past, when I was working on a project, I seldom paid attention to the details in the knowledge point. Today, I have the opportunity to differentiate several common
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.